amd iommu: Add iommu emulation for hvm guest
authorWei Wang <wei.wang2@amd.com>
Thu, 12 Jan 2012 12:50:50 +0000 (13:50 +0100)
committerWei Wang <wei.wang2@amd.com>
Thu, 12 Jan 2012 12:50:50 +0000 (13:50 +0100)
commit4547137c3e31bae4c6c89d1fad63b1928681715f
treeedb20a9aafd04e245b1d62f2f2738a2c6706cfbd
parent262bb227a4f27d0d18dfd2151798a884967db9b6
amd iommu: Add iommu emulation for hvm guest

ATS device driver that support PASID [1] and PRI [2] capabilites needs
to work with iommu driver in guest OS. We have to expose iommu
functionality to HVM guest, if we want assign ATS device to it. A new
hypervisor mmio handler is added to intercept iommu mmio accesses from
guest.

Signed-off-by: Wei Wang <wei.wang2@amd.com>
[1] http://www.pcisig.com/specifications/pciexpress/specifications/ECN-PASID-ATS-2011-03-31.pdf
[2] http://www.pcisig.com/members/downloads/specifications/iov/ats_r1.1_26Jan09.pdf
Committed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/intercept.c
xen/drivers/passthrough/amd/Makefile
xen/drivers/passthrough/amd/iommu_cmd.c
xen/drivers/passthrough/amd/iommu_guest.c [new file with mode: 0644]
xen/drivers/passthrough/amd/iommu_map.c
xen/drivers/passthrough/amd/pci_amd_iommu.c
xen/include/asm-x86/amd-iommu.h
xen/include/asm-x86/hvm/io.h
xen/include/asm-x86/hvm/svm/amd-iommu-defs.h
xen/include/asm-x86/hvm/svm/amd-iommu-proto.h
xen/include/xen/hvm/iommu.h